package com.atguigu.gulimall.auto.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auto.vo.SocialUser;
import com.atguigu.gulimall.auto.vo.UserLoginVo;
import com.atguigu.gulimall.auto.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author kabuda
 * @create 2022-11-29 17:40
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
     R register(@RequestBody UserRegisterVo vo);

    @PostMapping("/member/member/login")
     R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
    public R authlogin(@RequestBody SocialUser user) throws Exception;
}
